package com.huchao.www.exception;

/**
 * @Description:
 * @BelongsProject: springMVC
 * @BelongsPackage: com.huchao.www.exception
 * @Author: 亖思
 * @CreateTime: 2022/12/7 20:11
 * @Version: 1.0
 */
public class MyException extends Exception{
    private int timeout = 3;
    private String url = "javascript:history.go(-1)";
    private String message;
    public MyException(String message){
        this.message = message;
    }
    public MyException(int timeout, String message){
        this.timeout = timeout;
        this.message = message;
    }
    public MyException(int timeout, String message, String url){
        this.message = message;
        this.timeout = timeout;
        this.url = url;
    }
    public int getTimeout() {
        return timeout;
    }

    public void setTimeout(int timeout) {
        this.timeout = timeout;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
